package com.feilong.modules.common.page;

import lombok.AllArgsConstructor;
import lombok.Data;


@Data
@AllArgsConstructor
public class PageEntity {

    /**
     * 单页记录数,默认10
     */
    private Integer size;

    /**
     * 当前页数，默认1
     */
    private Integer current;

    /**
     * 总记录数
     */
    private Integer total;

    public PageEntity() {
        this.size = this.size == null? 10 : this.size;
        this.current = this.current == null? 1 : this.current;
    }

}
